package com.emep.changzhi.analyse.repository.information;

import com.emep.changzhi.analyse.entity.information.SysPromptInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 报警规则信息持久层
 * @date 2018/2/26 17:00
 */
public interface SysPromptInfoRepository extends JpaRepository<SysPromptInfo,Long> {

    SysPromptInfo findSysPromptInfoById(String id);

    @Modifying
    @Transactional
    Integer deleteById(String id);

    Page<SysPromptInfo> findAll(Specification< SysPromptInfo> spec, Pageable pageable);
}
